/***************************************************************
 *				srlos team allright reserved
 *filename  led.c
 *author    bloceanc
 *data		08/15/2010
 *comment   led driver 
 ***************************************************************/

#include "int.h"
#include "hw_portdef.h"

/*
 *  led initialize
 */
void drv_led_initialize(void)
{
	R_GPBCON = 0x15400;
	R_GPBUP = 0x7ff;
	R_GPBDAT = 0xffffffff;
}

/*
 * make led on
 */
void drv_led_on(int lednum)
{
	R_GPBDAT &= ~(1<<(lednum + 4));
}

/*
 * make led off
 */
void drv_led_off(int lednum)
{
	R_GPBDAT |= 1<<(lednum+4);
}
